<%@page import="bean.PortfolioVo"%>
<%@page import="bean.portDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>portInput.jsp</title>
<link rel='stylesheet' href='port.css'>
<script src='port.js'></script>
</head>
<body>
<jsp:useBean id="vo" class="bean.PortfolioVo"/>
<jsp:setProperty property="*" name="vo"/>
<%
	
	portDTO dto = new portDTO();
	dto.setVo(vo);
	PortfolioVo v = dto.selectOne1();
%>

<h1>포트폴리오 수정</h1>
<form id='portmFrm' method='post' action='Portfolio.jsp?inc=portModify_result.jsp'
		enctype='multipart/form-data'>
<label>항목</label>
<select name='cate' size='1' value='<%=v.getCate()%>'>
	<option value=''>항복선택</option>
	<option value='java'>JAVA</option>
	<option value='sql'>SQL</option>
	<option value='jsp'>JSP</option>
</select>

<label>제목</label>	
<input type='text' name='subject' value=<%=v.getSubject()%>>

<label>본문</label><p/>
<input type='textarea' name='content' value=<%=v.getContent()%>><p/>
<label>파일 첨부</label><br/>
<input type='file' name='photo'><br/>
<input type='button' name='pcancel' value='첨부 취소'><br/>
<label>작성자</label>
<input type='text' name='writer' value=<%=v.getWriter()%>>
<label>비밀번호</label>
<input type="password" name='pwd'><br/>


<input type='hidden' name='rno' value='<%=vo.getRno()%>'>
<input type='hidden' name='nowPage' value='<%=vo.getNowPage()%>'>
<input type='hidden' name='find' value='<%=vo.getFind()%>'>
</form>
<input type='button' value='수정' id='btnModify'>
<input type='button' value='목록으로' id='btnList'>

<script>portModifyInit();</script>
</body>
</html>